<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>图书管理系统</title>
    <link rel="stylesheet" type="text/css" href="/static/main.css" />
  </head>
  <body>
    
    <div class="tit">
      <div class="title">图书管理系统 <a href="/toAddBook" style="color: red;">添加图书</a></div>
      <div class="content">
        <table>
          <thead>
            <tr>
              <th>编号</th>
              <th>名称</th>
              <th>作者</th>
              <th>分类</th>
              <th>简介</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
            {{each list}}
            <tr>
              <th>{{$value.Id}}</th>
              <th>{{$value.name}}</th>
              <th>{{$value.author}}</th>
              <th>{{$value.lei}}</th>
              <th>{{$value.description}}</th>
              <th><span><a href="/toEditBook?id={{$value.Id}}">修改</a>|<a href="/deleteBook?id={{$value.Id}}">删除</a></span></th>
            </tr>
            {{/each}}
          </tbody>
        </table>
      </div>
    </div>
  </body>
</html>
